home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / misc / TownMaze.lha / TownMaze / src.lzh / usage.c < prev   
C/C++ Source or Header  |  1991-08-04  |  2KB  |  47 lines

  1. /*
  2. ** usage.c  Copyright 1991 Kent Paul Dolan,
  3. **          Mountain View, CA, USA 94039-0755
  4. **
  5. ** Written to satisfy an inquiry on USENet's rec.games.programmer newsgroup.
  6. ** May be freely used or modified in any non-commercial work.  Copyrighted
  7. ** only to prevent patenting by someone else.
  8. */
  9.  
  10. #include <stdio.h>
  11. #include "townmaze.h"
  12. #include "townproto.h"
  13.  
  14. #ifdef __STDC__
  15. void usage()
  16. #else
  17. int usage()
  18. #endif
  19. {
  20. /*
  21. ** Sorry about the format here; beats breaking the lines in unnatural places.
  22. */
  23.   fprintf(stderr,"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
  24. "Usage: townmaze [-h #] [-w #] [-g #] [-l #] [-c #] [-u #] [-s #] [-r #]\n",
  25. "Where: -h = height of maze in characters; minimum is 11, must be odd;\n",
  26. "       -w = width of maze in characters; minimum is 11, must be odd;\n",
  27. "       -g = gates in maze; how many streets start at city wall,\n",
  28. "            maximum is 2 * (height - 6)/7 + 2 (width - 6)/7;\n",
  29. "            lots of gates get rid of outer prominade;\n",
  30. "       -l = leave # gates openable; rest are made back into walls at\n",
  31. "            end of maze design processing, range is 0 to g;\n",
  32. "       -c = courts in maze; how many streets start inside the city;\n",
  33. "            maximum is (((height - 5)/6)*((width - 5)/6));\n",
  34. "            courts make more complex mazes at the expense of density;\n",
  35. "       -u = unused cells in maze; adds interesting shapes; maximum of\n",
  36. "            (((height-1)/14)*((width-1)/14)) is allowed, to preserve\n",
  37. "            connectivity of streets by leaving three cells between\n",
  38. "            unused cells so that streets can get past them;\n",
  39. "       -s = straightness of streets, range 0 to 998; straighter streets\n",
  40. "            make for more buildings, denser maze.\n",
  41. "       -r = force this random number routine seed to get the same maze\n",
  42. "            as the last time this seed was used.\n",
  43. "There must be at least one gate or court;              Copyright 1991,\n",
  44. "Spaces between flags and values are mandatory!!        Kent Paul Dolan.\n");
  45.    return;
  46. }
  47.